package model;

public class Employee {
	private int employee_id;
	private String firstname;
	private String lastname;
	private String username;
	private String password;
	private int position; // 1 - ; 2 -

	public Employee() {}
	
	public Employee(int id, String fname, String lname, String uname,
			String pwd, int pos) {
		employee_id = id;
		firstname = fname;
		lastname = lname;
		username = uname;
		password = pwd;
		position = pos;
	}

	public int getID() {
		return employee_id;
	}

	public String getFirstname() {
		return firstname;
	}

	public String getLastname() {
		return lastname;
	}

	public String getUsername() {
		return username;
	}

	public String getPassword() {
		return password;
	}

	public int getPosition() {
		return position;
	}

	public String toString() {
		return "ID: " + employee_id + " Firstname: " + firstname
				+ " Lastname: " + lastname;
	}

	public boolean equals(Employee emp){
		return ((employee_id == emp.getID()) &&
				(firstname == emp.getFirstname()) &&
				(lastname == emp.getLastname()) &&
				(username == emp.getUsername()) &&
				(password == emp.getPassword()) &&
				(position == emp.getPosition()));
	}
}
